<!DOCTYPE>
<html>
<head>
<title>CanvasWars</title>
<link rel="stylesheet" type="text/css" href="cw.css" />
<script type="text/javascript" src="jquery-1.6.1.js"></script>
<script type="text/javascript" src="cw.js"></script>
</head>
<body>
<h1>Canvas Wars</h1>
<canvas id="canvas"></canvas>

<br /><br />

<input type="text" id="txt1" />
<input type="button" id="btn1" />

<script type="text/javascript">
	
	cw.game.init(); //Init game after dom is ready
	
	$("#btn1").click(function(){
		conn.join($("#txt1").val());
		
		conn.addResponseHandler('msg', function(){
			console.log('msg received');
		});
		
	});
	
</script>
</body>
</html>